package de.sabram.upb.specs.validation;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

import org.eclipse.emf.common.util.EList;
import org.eclipse.xtext.validation.Check;

import de.sabram.upb.specs.gla.File;
import de.sabram.upb.specs.gla.GlaPackage;
import de.sabram.upb.specs.gla.Specification;
 

public class GlaJavaValidator extends AbstractGlaJavaValidator {
//
//	@Check
//	public void duplicateTokenNames(Specification glaFile){
//		HashMap<String, Specification> duplicates = new HashMap<String, Specification>(); 
//		for(Iterator<Specification> i = specs.iterator(); i.hasNext();){
//			Specification current = i.next();
//			if(current.getTokenName() != null)
//				if(duplicates.containsKey(current.getTokenName().getName())){
//					error("error", GlaPackage.Literals.FILE__SPECIFICATIONS);
//				}
//				else{
//					duplicates.put(current.getTokenName().getName(), current);
//				}
//
//		}
//	}
}
